#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int* twoSum(int* nums, int numsSize, int target, int* returnSize) {
    for (int i = 0; i < numsSize; i++)
    {
        for (int j = 0; j < numsSize; j++)
        {
            if (nums[i] + nums[j] == target)
            {
                *returnSize = nums + i;
                return nums + j;
            }
        }
    }
    return NULL;
}

int main()
{
    int arr[] = { 1,2,3,4,5,6,17 };
    int pa = 0;
    int* pb = twoSum(arr, 7, 10, &pa);
    if (pa && pb)
        printf("%d  %d\n", pa, *pb);
    else
        printf("No find");
    return 0;
}